package top.tagao.yygh.cmn.service;

import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.web.multipart.MultipartFile;
import top.tagao.yygh.model.cmn.Dict;

import javax.servlet.http.HttpServletResponse;
import java.util.List;

/**
 * @author fu-xiao-liu
 * @Date 2022/3/1 14:29
 */
public interface DictService extends IService<Dict> {

    List<Dict> findChildData(Long id);

    void exportDict(HttpServletResponse response);

    void importDictData(MultipartFile file);

    /**
     * 根据上级编码与值获取数据字典名称
     */
    String getDictName (String parentDictCode, String value);

    List<Dict> findByDictCode(String dictCode);
}
